package com.hung.hashMap;
/**
 * title:TestMap.java
 * author: hungki
 * createTime 18/8/21 下午 8:57
 * version v_1.0
 * Copyright @ 2018 复华创新事业部
 */

import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * className: TestMap 
 * describe: 
 * author: hungki  
 * createTime 18/8/21 下午 8:57 
 *
 */
public class TestMap {

    public static void main(String[] args) {
        Map<String,String> map =new HashMap<>();
        map  = Collections.synchronizedMap(map);

        Map<String,String> map2 =new HashMap<>();

        Object obj1 = map;
        Object obj2 = map2;
        map=null;
        map2 = null;
        System.out.println("map = " + map);
        System.out.println("map2 = " + map2);
        System.out.println("obj2 = " + obj2);
        System.out.println("obj1 = " + obj1);

        ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();



    }
}
